package com.neuedu.corejava.ch7;

public class Outer2 {
	
	private int varOuter=100;
	class Inner {
	int varInner=200;
	public void showOuter() {
	//是否能够输出？
	System.out.println(varOuter);
	}
	}
	public void showInner() {
	Inner i=new Inner();
	System.out.println(i.varInner);
	}

	public static void main(String[] args) {
		//实例化外部类
		Outer2 o = new Outer2();
		//实例化内部类
		Outer2.Inner oi = o.new Inner();

	}

}
